﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Places.master" AutoEventWireup="false" CodeFile="PlacesAlbumDetails.aspx.vb" Inherits="PlacesAlbumDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <fieldset>
<legend>Album Details</legend>
<ul>
<li>Album Name</li>
<li>Brief Description of the Album</li>
<li>Pictures displayed in a decided format</li>
<li>Options as to how to view the pictures e.g. list format, tile format</li>
<li>Hyperlinks on the pictures to select them and view detials about the individual pictures</li>
<li>Details on Pictures , tags, comments, controls to navigate to previous and next picture</li>
</ul>
    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="429px" 
        AutoGenerateRows="False" DataSourceID="DSPics">
        <Fields>
            <asp:BoundField DataField="AlbumName" HeaderText="Name" 
                SortExpression="AlbumName" />
            <asp:BoundField DataField="AlbumDesc" HeaderText="Description" 
                SortExpression="AlbumDesc" />
            <asp:ImageField DataImageUrlField="AlIcon" HeaderText="Icon">
            </asp:ImageField>
        </Fields>
    </asp:DetailsView>
<br />
    
    <asp:SqlDataSource ID="DSPics" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        
        SelectCommand="SELECT [AlbumName], [AlbumDesc], [AlCategory], [AlIcon] FROM [tblAlbum] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
        <asp:Button ID="btnAlbumAdd" runat="server" Text="Add to Album" 
            PostBackUrl="PlacesUploadPictures.aspx?ID={0}" />
</fieldset>
</asp:Content>

